﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    assembly="SAKS.Models"
    namespace="SAKS.Models">
  <class name="Role" table="SAKS_Role">
    <id name="Id">
      <generator class ="guid.comb" />
    </id>
    <natural-id >
      <property name="RoleName" not-null="true"/>
    </natural-id>
    <version name="Version" />
    <property name="Description" />
    <bag name="Users" table="User_In_Role" cascade="none" inverse="true">
      <key column="RoleId" not-null="true"/>
      <many-to-many class="SAKS.Models.User,SAKS.Models" column="UserId"/>
    </bag>
  </class>
</hibernate-mapping>